package com.yl.pattern.creatormodel.prototype.demo3;

import java.io.Serializable;

/**
 * @Author 小羊
 * @Date 30/10/2024下午 3:55
 * @ClassName Citation
 * @Description 三好学生类
 */
public class Citation implements Cloneable, Serializable {
    private Student student;

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    public void show(){
        System.out.println(student.getName() + "同学：在2020学年第一学期中表现优秀，被评为三好学生。特发此状！");
    }
    @Override
    protected Citation clone() throws CloneNotSupportedException {
        return (Citation) super.clone();
    }
}
